# coding: utf-8

"""
@version: python3.6
@author: 噢啦嘿嘿
@contact: jian.zhou@360che.com
@software: PyCharm
@file: 1test_demo.py
@time: 2021/1/20 14:08
"""
from page.home import Home
import pytest
from lib.loggers import log
from lib.init_data import get_data

base_data = get_data("test_demo_data.yml")
test_data = get_data("test_data.json")
log.info(list(test_data["test_dai"][0].values()))


@pytest.mark.usefixtures('driver')
class Test_case():

    @pytest.mark.parametrize("use, pas",base_data["testname"])
    def test_1(self,driver,use,pas):
        td = Home(driver)
        # log.info(use)
        # log.info(pas)
        # log.info(driver)
        assert 1 == 2
    #
    # @pytest.mark.parametrize("a,v,c",test_data["test_week"])
    # def test_2(self, a,v,c):
    #     assert 2 == 2
    #
    # @pytest.mark.parametrize("pas", [i[1] for i in base_data["testname"]])
    # @pytest.mark.parametrize("use",[i[0] for i in base_data["testname"]])
    # def test_3(self, use,pas):
    #     # print(device)
    #     assert 3 == 3
    #
    # @pytest.mark.parametrize("a,v,c,d,e,f", [list(test_data["test_dai"][0].values())])
    # def test_4(self,a,v,c,d,e,f):
    #     assert 4 == 4
